package com.huyandroid.AccountMonitor1;

public class User {
	///private variables
	int _id;
	String _user_name;
	String _password;
	Information _info;
	///Constructors
	public User(){
		
	}
	public User(int id,String name,String pwd, Information i){
		this._id=id;
		this._user_name=name;
		this._password=pwd;
		this._info=i;
	}
	public User(String name,String pwd, Information i){
		this._id=0;
		this._user_name=name;
		this._password=pwd;
		this._info=i;
	}
	public User(String name,String pwd){
		this._id=0;
		this._user_name=name;
		this._password=pwd;
		this._info=new Information();
	}
	///Setting variables
	public void setId(int id){
		this._id=id;
	}
	public void setUserName(String name){
		this._user_name=name;
	}
	public void setPassword(String pwd){
		this._password=pwd;
	}
	public void setInformation(Information i){
		this._info=i;
	}
	///getting variables
	public int getId(){
		return this._id;
	}
	public String getUserName(){
		return this._user_name;
	}
	public String getPassword(){
		return this._password;
	}
	public Information getInformation(){
		return this._info;
	}
}
